import axios from "@/utils/request";

//新闻列表
export const articleList = params => axios({
  url: "/post",
  params
})
// 新闻栏目
export const category = () => axios({
  url: "/category"
})
// 发布文章
export const publish = data => axios({
  url: "/post",
  method: "post",
  data
})